package org.threebitsoftware.tbb;

import static org.junit.Assert.*;

import java.sql.Connection;
import java.sql.ResultSet;

import org.junit.Assert;
import org.junit.Test;

import com.pew.util.dao.DatabaseConection;
import com.pew.util.dao.DatabaseUtil;


public class DB_ConnectionTest {
	@Test
	public void testDBConnection()
	{
		Connection lConn = DatabaseConection.getDBConn();
		ResultSet lRS = DatabaseUtil.runSelectStatement(lConn, "SELECT 1 FROM tbb.contact");
		if(lRS != null)
		{
			assertTrue(true);
		}
		else
		{
			assertTrue(false);
		}
	}
}
